package demo2;

import redis.clients.jedis.Jedis;
import redis.clients.jedis.JedisPool;

public class TestPool {
public static void main(String[] args) {
    JedisPool pool=Util.getInstance();
    JedisPool pool2=Util.getInstance();
    System.out.println(pool==pool2);
    Jedis j=null;
    try {
        j = pool.getResource();
        j.set("aa", "one");
    }finally {
        Util.release(pool,j);
    }
}
}
